home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-01-12 | 2.9 KB | 119 lines | [TEXT/MPS ] |
- /*
- Count.r - commando resource file
-
- 'FuncNames' is a cross-reference utility for 'C' programs.
- It has the ability to handle nested include files
- to a depth of 8 levels and properly processes nested
- comments as supported by BDS C. Option flags support
- the following features:
-
- - Routing of list output to disk
- - Cross-referencing of reserved words
- - Processing of nested include files
- - Generation of listing only
-
- Usage: FuncNames <filename> <flag(s)>
-
- Flags:
- -i = Enable file inclusion
- -l = Generate listing only
- -r = Cross-ref reserved words
- -f = do function index only
- -o <filename> = Write output to named file
- -w <width> = No of output columns
- -t <number> = Number of spaces to expand each tab
-
- Note that flags -o -w -t must be followed by a space
- and then the value for the flag.
- */
-
- #include "Cmdo.r"
-
-
- resource 'cmdo' (128) {
- {
- 280, /* Height of dialog */
- "Lists C Function names from its input, and writes the results to standard output. "
- "Also will cross-reference all functions and variables, though "
- "its symbol table is currently limited to 749 symbols. Tool by Scott Boag.",
- {
- and {{-5,-6,-7}}, CheckOption {
- NotSet, {24, 248, 40, 440},
- "Do Cross-reference",
- "-x",
- "Use #Included files if this option is checked."},
- or {{1}}, CheckOption {
- NotSet, {40, 248, 56, 440},
- "Enable file inclusion",
- "-i",
- "Use #Included files if this option is checked."},
-
- or {{1}}, CheckOption {
- NotSet, {56, 248, 72, 440},
- "Generate listing only",
- "-l",
- "List documents with global and local line numbers."},
-
- or {{1}}, CheckOption {
- NotSet, {72, 248, 88, 440},
- "Cross-ref reserved words",
- "-r",
- "Cross-reference C reserved words"},
-
- and {{-1,-2,-3, -4}}, CheckOption {
- NotSet, {40, 24, 56, 216},
- "List Macros",
- "-m",
- "List Macros with functions."},
-
- and {{-1,-2,-3, -4}}, CheckOption {
- NotSet, {56, 24, 72, 216},
- "List Files and Lines",
- "-f",
- "List function position by Files and Lines."},
-
- and {{-1,-2,-3, -4}}, CheckOption {
- NotSet, {72, 24, 88, 216},
- "List pages",
- "-p",
- "List functions position by Files, Lines, and pages."},
-
- notDependent {}, TextBox {
- gray,
- {17, 240, 90, 450},
- "Cross-reference Options"
- },
- notDependent {}, MultiFiles {
- "Input Files…",
- "Select the files to reference. If no files are specified, usage is displayed.",
- {16, 24, 32, 120},
- "Files to reference:",
- "",
- MultiInputFiles {
- {TEXT},
- FilterTypes,
- "Only text files",
- "All files",
- }
- },
- Or {{-3}}, Redirection {
- StandardInput,
- {125, 30}
- },
- notDependent {}, Redirection {
- StandardOutput,
- {125, 180}
- },
- notDependent {}, Redirection {
- DiagnosticOutput,
- {125, 330}
- },
- notDependent {}, TextBox {
- gray,
- {120, 25, 165, 450},
- "Redirection"
- },
- }
- }
- };
-